PDF4Java Reference Documentation
com.o2sol.pdf4java.flowdocument Package / PDFFlowContent Class / getContentHeight Method / getContentHeight(double,boolean) Method
The width for which the content height is computed.
If true the content height is recalculated.
In This Topic
    getContentHeight(double,boolean) Method
    In This Topic
    Gets the height of the content for the given width and forces width recalculation.
    When this method is called for the first time, the content height is calculated. Subsequent calls with the same 'width' parameter return the already computed height. If 'recalculate' is true, then the content height is computed even if 'width' has not changed from previous call.
    Syntax
    public double getContentHeight( 
       double width,
       boolean recalculate
    )

    Parameters

    width
    The width for which the content height is computed.
    recalculate
    If true the content height is recalculated.

    Return Value

    The height of the content for the specified width.
    See Also